package zhangyu.world.voltaic.controller;


import com.alibaba.fastjson.JSONObject;
import zhangyu.world.voltaic.service.IAdminService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author shane
 * @since 2020-03-30
 */
@RestController
@RequestMapping("/admin")
public class AdminController {
    private Logger logger = LoggerFactory.getLogger(this.getClass());
    @Autowired
    private IAdminService adminService;
    @GetMapping("")
    public JSONObject test(){
        logger.info("test");

        return adminService.test();
    }



}
